import axios from "../utils/axiosUtils"

/**
 * 获取所有账户列表
 * @returns Promise
 */
export const findAllUserApi = ()=>{
    return axios.get("/users/getAccountList2")
}

/**
 * 添加用户
 */
export const addUserApi = (data)=>{
    return axios.post("/users/accountadd",data)
}

/**
 * 登录接口
 * @param {*} data 
 * @returns 
 */
export const loginApi = (data)=>{
    return axios.post("/users/login",data)
}